package designPattern.action11.command.c4t4.concrete.command;

import java.util.ArrayList;

import designPattern.action11.command.c4t4.sketch.Command;

public class MacroCommand implements Command {
    ArrayList<Command> commandList;

    public MacroCommand(ArrayList<Command> commandList) {
        this.commandList = commandList;
    }

    public void execute() {
        for (int k = 0; k < commandList.size(); k++) {
            Command command = commandList.get(k);
            command.execute();
        }
    }
}
